Re: Error linking libpq into client program

Поиск
Список
Период
Сортировка
От Jim Crate
Тема Re: Error linking libpq into client program
Дата
Msg-id r02010100-1033-CD49CD0D9EF511D89CE60003939CD378@[67.35.9.216]
обсуждение исходный текст
Ответ на Error linking libpq into client program  (Jim Crate <jcrate@deepskytech.com>)
Список pgsql-general
on 5/5/04, Jim Crate <jcrate@deepskytech.com> wrote:

>I'm trying to build a client program to access a database using the libpq
>interface on MacOS X 10.3.3 using CodeWarrior 9.  PostgreSQL is at version
>7.4.2.
>
>It compiles ok, but I get a link error.  I have linked to libpq.a, because I
got
>different errors before I did that.   Here is the error I'm getting right now:
>
>Link Error: undefined: '@_1' (code)
>Referenced from 'pqSetenvPoll' in libpq.a
>Referenced from 'pqSetenvPoll' in libpq.a
>Referenced from 'pqSetenvPoll' in libpq.a
>Referenced from 'pqSetenvPoll' in libpq.a
>Referenced from 'pqSetenvPoll' in libpq.a
>Referenced from 'pqSetenvPoll' in libpq.a
>Referenced from 'pqSetenvPoll' in libpq.a

 As an update, I moved the project to Xcode (which uses gcc), and it compiles
and links just fine.  I guess this was just a problem with CW?  Does this work
with other compilers?

Jim Crate
Deep Sky Technologies, Inc.

В списке pgsql-general по дате отправления:

Предыдущее
От: Edmund Dengler
Дата:
Сообщение: CHECK constraints and optimizations
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CHECK constraints and optimizations